import axios from '@/utils/request'

// 获取广告图
export const getBannerAPI = () => axios({
  url: '/home/banner'
})

// 获取新鲜好物
export const getFreshGoodsAPI = () => axios({
  url: '/home/new'
})

// 获取人气推荐
export const getHotAPI = () => axios({
  url: '/home/hot'
})

// 获取热门品牌
export const getBrandAPI = () => axios({
  url: '/home/brand'
})

// 产品区块
export const getProductAPI = () => axios({
  url: '/home/goods'
})

// 获取最新专题
export const getSpecialAPI = () => axios({
  url: '/home/special'
})

// 搜索商品
export const SerachGoodsAPI = (value) => axios({
  url: '/search/tips',
  params: {
    value
  }
})
